% 文档类
\documentclass{article}
% 导言区
\usepackage{ctex}
\usepackage{zhlipsum}
\usepackage{graphicx}
\usepackage{floatrow}
\usepackage{subfig}
\usepackage{mwe}

% 正文区
\begin{document}
		
	\zhlipsum[1]	
	\begin{figure}[htpb]		
		\RawFloats\CenterFloatBoxes		
		\begin{floatrow}			
			\ffigbox[\FBwidth]			
			{\includegraphics[width=0.4\textwidth]{example-image}}			
			{\caption{插图}\label{fig:floatrow}}			
			\ttabbox			
			{				
				\begin{tabular}{|c|c|}					
					\hline					
					A & B\\					
					\hline					
					1 & 2\\					
					\hline					
				\end{tabular}				
			}			
			{\caption{表格}\label{tab:floatrow}}			
		\end{floatrow}		
	\end{figure}
	
\end{document}